package com.itheima.dao;

import com.itheima.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {
    @Select("select count(*) from student ")
    int queryTotalCount();

    @Select("select * from student limit #{startIndex},#{pageSize}")
    List<Student> queryStudentByPage(
            @Param("startIndex") int startIndex,
            @Param("pageSize") int pageSize);
}
